/**
 * @author yanhaijiang
 *
 */
package bid.yanhj.springboot.dto;

public class ErrorInfo<T> {

    public static Integer OK = 0;
    public static Integer ERROR = 100;

    private Integer code;
    private String message;
    private String url;
    private T data;

    /**
     * @return the oK
     */
    public static Integer getOK() {
        return OK;
    }

    /**
     * @return the eRROR
     */
    public static Integer getERROR() {
        return ERROR;
    }

    /**
     * @return the ok
     */
    public static Integer getOk() {
        return OK;
    }

    /**
     * @param ok
     *            the ok to set
     */
    public static void setOk(Integer ok) {
        OK = ok;
    }

    /**
     * @return the error
     */
    public static Integer getError() {
        return ERROR;
    }

    /**
     * @param error
     *            the error to set
     */
    public static void setError(Integer error) {
        ERROR = error;
    }

    /**
     * @return the code
     */
    public Integer getCode() {
        return code;
    }

    /**
     * @param code
     *            the code to set
     */
    public void setCode(Integer code) {
        this.code = code;
    }

    /**
     * @return the message
     */
    public String getMessage() {
        return message;
    }

    /**
     * @param message
     *            the message to set
     */
    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * @return the url
     */
    public String getUrl() {
        return url;
    }

    /**
     * @param url
     *            the url to set
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * @return the data
     */
    public T getData() {
        return data;
    }

    /**
     * @param data
     *            the data to set
     */
    public void setData(T data) {
        this.data = data;
    }

}